package Thread;

public class Thread_join {
    public static void main(String[] args) {


        Thread download = new Thread(() -> {
            for (int i = 1; i < 10; i++) {
                System.out.println();
                try {
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });


        Thread show = new Thread(() -> {
            for (int i = 1; i < 10; i++) {
                System.out.println();
                try {
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });


    }
}
